data Field or Numeric field or variable to accumulate
variable
Specifies which fields and/or variables to subtotal in a following layout report. ACCUMULATE is used in conjunction with BREAK LEVEL to initiate break processing.
There are two methods used to turn on break processing for layout reports. Refer to the topic entitled ‘Break Processing ’ for information about the two methods.
You must execute BREAK LEVEL and ACCUMULATE before every layout report for which you want to do break processing. This commands execute break processing for a layout report.
Use ACCUMULATE when you want to include subtotals for numeric fields or variables in a layout report. ACCUMULATE tells 4th Dimension to store subtotals for each of the data arguments. The subtotals are accumulated for each break level specified with the BREAK LEVEL command.
Execute ACCUMULATE before printing the report with PRINT SELECTION. Use the Subtotal function in the layout procedure or a script to return the subtotal of one of the data arguments.
The following example prints a report with two break levels. The selection is sorted on four levels, but the BREAK LEVEL command specifies to break on only two levels. One field is accumulated with the  ACCUMULATE command: